import request from '@/router/axios'

export function fetchList(query) {
  return request({
    url: '/ems-api/ems/totalEarnHistory/listTotalEarnHistory',
    method: 'get',
    params: query
  })
}

export function setUpTotalEarn(query) {
  return request({
    url: '/ems-api/ems/totalEarn/setUpTotalEarn',
    method: 'post',
    data: query
  })
}


export function getTotalEarns() {
  return request({
    url: '/ems-api/ems/totalEarn/getTotalEarns',
    method: 'get',
  })
}
